/**
 * 类型判断:
 *  is 关键词来判断类型
 */

void main() {
  var str = 1234;
  if (str is String) {
    print('String');
  } else if (str is int) {
    print('int');
  } else {
    print('其他类型');
  }


}